package cn.yitun.chat.yitunserverimbase.dao.userchat;

import cn.yitun.chat.yitunservercommonlib.crud.yitun.CrudDao;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.userchat.SecurityQuestionDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.userchat.SecurityQuestionInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.userchat.SecurityQuestionVo;
import cn.yitun.chat.yitunservercommonlib.util.R;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 安全问题表
 * @author chenyitun
 * @email chenyitun@163.com
 * @date 2020-05-27 14:43:51
 */
@Mapper
public interface SecurityQuestionDao extends CrudDao<SecurityQuestionDto, SecurityQuestionInfo, SecurityQuestionVo> {

	int absDel(Long id);

	int batchAbsDel(Long[] ids);

	/**
	 * 只查询问题，不返回答案，作用于找回问题等敏感功能
	 * @param params
	 * @return
	 */
    List<SecurityQuestionVo> listQuestionVO(Map<String, Object> params);
}
